package wish.model;
import java.util.List;

import org.htmlparser.Node;
import org.htmlparser.nodes.TagNode;
import org.htmlparser.util.NodeList;


public class Record {

	private int level;
	private String tag;
	private NodeList nodes;
	private int size;
	private TagNode father;

	public Record(TagNode father, int level, String tag, NodeList nodes, int size) {
		
		this.father = father;
		this.level = level;
		this.tag = tag;
		this.nodes = nodes;
		this.size = size;
		
	}

	public NodeList getNodeList() {
		
		return nodes;
		
	}

	@Override
	public String toString() {
		
		return new String("<RECORD>\nlevel" + " - " + tag + " - " + size + " - " + nodes.asString() + "</RECORD>");
		
	}

	public int getLevel() {
		
		return level;
		
	}

	public String getTag() {
		
		return tag;
		
	}

	public TagNode getFather() {
		return father;
	}
	
}
